package behavioralPattern.mediator.example02;

/**
 * 抽象同事类
 */
public abstract class Person {

    protected String name;

    // 维护一个中介者的引用
    protected Mediator mediator;

    public Person(String name, Mediator mediator) {
        this.name = name;
        this.mediator = mediator;
    }

    public abstract void getMessage(String message);

    public abstract void contact(String message);
}
